@import "../_config";
html,
body {
    overflow: hidden;
    font-family: SourceHanSansCN-Medium;
    -webkit-overflow-scrolling: auto; // background-color: transparent;
}

.ui-header {
    display: block; // position: relative;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0.88rem;
    line-height: 0.88rem;
    font-size: 0.34rem;
    color: #232323;
    background-color: #fff;
    box-sizing: content-box;
    z-index: 999;
    &:after {
        content: '';
        display: none;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background-color: #c2c2c7;
        transform: scale(1, 0.5);
        transform-origin: center center;
    }
}

.is-me {
    background-color: #0E0E16;
}

.is-white {
    color: #fff;
}

.ui-header__me {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #0E0E16;
    .ui-header__meLeft {
        display: block;
        position: absolute;
        left: 0rem;
        bottom: 0;
        width: 2rem;
        height: 0.88rem; // text-align: center;
        z-index: 9;
        font-size: .3rem;
        color: #fff;
        padding-left: .3rem;
    }
    .ui-header__meRight {
        display: block;
        position: absolute;
        right: .06rem;
        bottom: 0;
        width: .88rem;
        height: 0.88rem; // text-align: center;
        z-index: 9;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: .34rem .34rem;
        background-image: url(../../image/main/share.png);
    }
}

.ui-header__station {
    display: block;
    width: 100%;
    height: 100%;
    .ui-header__stationLeft,
    .ui-header__stationRight {
        display: block;
        position: absolute;
        bottom: 0;
        height: 0.88rem; // text-align: center;
        z-index: 9;
        font-size: .24rem;
        color: #2F2F2F;
        padding-left: .3rem;
    }
    .ui-header__stationLeft {
        left: .12rem;
        width: 2rem;
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: .3rem;
            height: .88rem;
            background-position: center center;
            background-repeat: no-repeat;
            background-size: .14rem .18rem;
            background-image: url(../../image/main/arrow-down.png);
        }
    }
    .ui-header__stationRight {
        // width: 1.12rem;
        right: .3rem;
    }
}

.ui-header__night {
    display: block;
    width: 100%;
    height: 100%;
    .ui-header__nightLeft,
    .ui-header__nightRight {
        display: block;
        position: absolute;
        bottom: 0;
        height: 0.88rem; // text-align: center;
        z-index: 9;
        font-size: .24rem;
        color: #2F2F2F;
        padding-left: .3rem;
    }
    .ui-header__nightLeft {
        left: .24rem;
        width: 2rem;
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: .3rem;
            height: .88rem;
            background-position: left center;
            background-repeat: no-repeat;
            background-size: .2rem .24rem;
            background-image: url(../../image/main/near.png);
        }
    }
    .ui-header__nightRight {
        width: 1.6rem;
        right: 0rem;
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: .3rem;
            height: .88rem;
            background-position: left center;
            background-repeat: no-repeat;
            background-size: .22rem .22rem;
            background-image: url(../../image/main/boy.png);
        }
    }
    .boy {
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: .3rem;
            height: .88rem;
            background-position: left center;
            background-repeat: no-repeat;
            background-size: .22rem .22rem;
            background-image: url(../../image/main/girl.png);
        }
    }
    .ui-header__nightMiddle {
        display: block;
        position: absolute;
        left: 50%;
        margin-left: -1.6rem;
        bottom: .26rem;
        height: 0.4rem;
        width: 3.2rem;
        .ui-header__input {
            display: block;
            position: relative;
            float: left;
            width: 1.84rem;
            height: .48rem;
            line-height: .24rem;
            font-size: .24rem;
            color: #9C9C9C;
            padding: .1rem .06rem .1rem .56rem;
            border-top-left-radius: .24rem;
            border-bottom-left-radius: .24rem;
            border: 1px solid #9C9C9C;
            border-right: none;
            &:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: .52rem;
                height: .44rem;
                background-position: center center;
                background-repeat: no-repeat;
                background-size: .26rem .26rem;
                background-image: url(../../image/main/search.png);
            }
        }
        .ui-header__search {
            display: block;
            float: left;
            width: 1.36rem;
            height: .48rem;
            line-height: .24rem;
            font-size: .24rem;
            text-align: center;
            color: #6902C9;
            padding: .1rem;
            border-top-right-radius: .24rem;
            border-bottom-right-radius: .24rem;
            border: 1px solid #6902C9;
        }
    }
}

.ui-header__leftBtn,
.ui-header__rightBtn {
    display: block;
    position: absolute;
    bottom: 0;
    width: 0.88rem;
    height: 0.88rem;
    text-align: center;
    z-index: 9;
    font-size: .3rem;
    color: #fff;
    margin-right: .12rem;
}

.ui-header__title {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.88rem;
    padding: 0 0.88rem;
    font-family: SourceHanSansCN-Medium;
    box-sizing: border-box;
    @include ellipsis;
    text-align: center;
}

.ui-mainFooter {
    display: flex;
    flex-flow: row;
    -webkit-box-orient: horizontal;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: #fff; // @include top-line;
}

.ui-mainFooter__item {
    display: block;
    flex: 1;
    height: 100%;
    padding-top: 8px;
    text-align: center;
    font-size: 0;
    &.is-active {
        .ui-mainFooter__icon {
            &.is-people {
                background-size: 20px 20px;
                @include bgi-center( url(../../image/main/people-select.png));
            }
            &.is-station {
                background-size: 20px 20px;
                @include bgi-center( url(../../image/main/station-select.png));
            }
            &.is-market {
                background-size: 20px 20px;
                @include bgi-center( url(../../image/main/market-select.png));
            }
            &.is-me {
                background-size: 20px 20px;
                @include bgi-center( url(../../image/main/me-select.png));
            }
        }
        .ui-mainFooter__title {
            color: #9A57FF;
        }
    }
}

.ui-mainFooter__icon {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px; // height: 100%;
    &.is-people {
        background-size: 20px 20px;
        @include bgi-center( url(../../image/main/people.png));
    }
    &.is-station {
        background-size: 20px 20px;
        @include bgi-center( url(../../image/main/station.png));
    }
    &.is-market {
        background-size: 20px 20px;
        @include bgi-center( url(../../image/main/market.png));
    }
    &.is-me {
        background-color: #fff;
        background-size: 20px 20px;
        @include bgi-center( url(../../image/main/me.png));
    }
}

.ui-mainFooter__title {
    margin-top: 7px;
    font-size: 10px;
    color: $mainFontColor;
    text-align: center;
}

.ui-mainHeader {
    display: block;
    box-sizing: content-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: $mainColor; // height: 44px;
    // padding-top: 20px;
}